html
<?php
echo " any";

include_once '../includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$query = "SELECT 1 as t";
echo $query;

  $result = db_query($query);
  if (count($result) > 0) {
    $data = db_fetch_array($result);

    if ($data != FALSE) {
        // there is at least one result data
     echo "get data".$data['t'];
    }
  }
 else 
    echo "wrong";

?>
